home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.19941031-19941221
/
000206_news@columbia.edu_Sun Nov 20 12:43:40 1994.msg
< prev
next >
Wrap
Internet Message Format
|
2020-01-01
|
2KB
Received: from apakabar.cc.columbia.edu by watsun.cc.columbia.edu with SMTP id AA17913
(5.65c+CU/IDA-1.4.4/HLK for <kermit.misc@watsun.cc.columbia.edu>); Mon, 21 Nov 1994 05:49:42 -0500
Received: by apakabar.cc.columbia.edu id AA07654
(5.65c+CU/IDA-1.4.4/HLK for kermit.misc@watsun); Mon, 21 Nov 1994 05:49:40 -0500
Path: news.columbia.edu!sol.ctr.columbia.edu!howland.reston.ans.net!agate!dog.ee.lbl.gov!news.cs.utah.edu!cc.usu.edu!jrd
From: jrd@cc.usu.edu (Joe Doupnik)
Newsgroups: comp.protocols.kermit.misc
Subject: Re: Question about ASK usage in MS-Kermit script
Message-Id: <1994Nov20.184340.33391@cc.usu.edu>
Date: 20 Nov 94 18:43:40 MDT
References: <CzLEG2.3Er@nntpa.cb.att.com>
Organization: Utah State University
Lines: 23
Apparently-To: kermit.misc@watsun.cc.columbia.edu
In article <CzLEG2.3Er@nntpa.cb.att.com>, mrbaker@hodcs.ho.att.com (-M.BAKER) writes:
> Hello:
>
> I have a question about ASK. I am writing an MS-Kermit
> script which prompts
> the user to enter a filename, so I "ASK" for it. No problem
> there. But I would like to be able to detect if the user merely
> hits the ENTER key without typing anything else in first.
>
> There is probably an obvious answer. I have looked all over &
> experimented with no success. I am a new user of Kermit, hence I
> am working from .HLP, .UPD, and .BWR while waiting for my copy
> of "the book" to arrive.
>
> Can someone please help? (Examples appreciated)
-----------
ask \%a prompt>
prompt> <user presses Enter so \%a is empty and therefore undefined>
if equ "\%a" "" echo The user did not provide text
or if defined \%a echo The user did provide text
and so on. Don't use {\%a} {} because they will parse out to empty, leaving
if equ echo The ... which is not what is wanted.
Joe D.